package com.cws.model;

import java.util.List;

import com.jfinal.plugin.activerecord.Model;

public class Spots extends Model<Spots> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 6863203380858035930L;

	public static final Spots dao = new Spots();

	public Scenic getScenic() {
		return Scenic.dao.findById(get("id"));
	}

	public List<Spots> getAll() {
		return dao.find("select * from spots");
	}

}
